---
archived: true
title: Mustache.Io
date: 2014-02-12
description: Io Mustache Bindings
category: web
status: 'production'
sort_index: 3
links:
    'Source' : http://github.com/mil/mustache.io
    'Io Lang' : http://iolanguage.org/
    'All Bindings' : https://mustache.github.io/
---

[Mustache.Io](http://github.com/mil/mustache.io) is library for compiling [Mustache](https://mustache.github.io/) logicless templates in the [Io](http://iolanguage.org/) language.  It's usable in conjunction with _why's [yown](https://github.com/whymirror/yown) web-framework, or usable standalone.

Mustache.Io is designed to work both Io object and maps. It's simple api gives you two methods: `render` and `setDelimiters`:

|Method      |Arguments   |Description  |
|:------------|:------------|:-------------|
|`render` | `template`, `object`, `partials` | Renders the given template with the provided object and partials. |
|`setDelimiters` | `start_delimiter`, `end_delimiter` |  Sets the delimiters. |


For standard `Mustache` template rendering, a simple contrived example in `Io` might look like:

```io
doFile("lib/mustache.io")
obj := Object clone do(
  name := "Miles"
  age  := 20
)

template := "I am {{ name }}, age: {{ age }}"
Mustache render(template, obj)
```

yields:

```io
I am Miles, age: 20
```

That's pretty much all there is to it. Feel free to check out the [full documentation here](http://github.com/mil/mustache.io).
